<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Cancels a pending HTTP request</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventhttprequest.addheader.html">EventHttpRequest::addHeader</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventhttprequest.clearheaders.html">EventHttpRequest::clearHeaders</a></div>
 <div class="up"><a href="class.eventhttprequest.html">EventHttpRequest</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="eventhttprequest.cancel" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EventHttpRequest::cancel</h1>
  <p class="verinfo">(PECL event &gt;= 1.4.0-beta)</p><p class="refpurpose"><span class="refname">EventHttpRequest::cancel</span> &mdash; <span class="dc-title">Cancels a pending HTTP request</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-eventhttprequest.cancel-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type"><span class="type void">void</span></span> 
   <span class="methodname"><strong>EventHttpRequest::cancel</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   Cancels a pending HTTP request.
  </p>
  <p class="para">
   Cancels an ongoing HTTP request. The callback associated with this request
   is not executed and the request object is freed. If the request is
   currently being processed, e.g. it is ongoing, the corresponding
   <a href="class.eventhttpconnection.html" class="classname">EventHttpConnection</a>
   object is going to get reset.
  </p>
  <p class="para">
   A request cannot be canceled if its callback has executed already. A
   request may be canceled reentrantly from its chunked callback.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-eventhttprequest.cancel-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-eventhttprequest.cancel-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventhttprequest.addheader.html">EventHttpRequest::addHeader</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventhttprequest.clearheaders.html">EventHttpRequest::clearHeaders</a></div>
 <div class="up"><a href="class.eventhttprequest.html">EventHttpRequest</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
